<?php
class BdController{
    private $dbhost;
    private $dbname;
    private $dbuser;
    private $dbpass;

    public function __construct(){
    }
    
    public static function darConexion(){
        $dbhost="172.16.12.42";
        $dbname="bdfacturacionsr";
        $dbuser="sosa_r";
        $dbpass="123456";
        $conn=null;
        try{
            $conn = new PDO('mysql:host=' . $dbhost. ';dbname=' . $dbname, $dbuser, $dbpass);
        }catch(PDOException $e){
            echo 'Verificar Error: ';
            echo $e->getMessage();
        }
        return $conn;
    }
}
?>